import request from '@/utils/request'

// 查询产品检验单列表
export function listTraceReport(query) {
  return request({
    url: '/mesCheck/TraceReport/list',
    method: 'get',
    params: query
  })
}

// 查询产品检验单详细
export function getTraceReport(id) {
  return request({
    url: '/mesCheck/TraceReport/' + id,
    method: 'get'
  })
}

// 新增产品检验单
export function addTraceReport(data) {
  return request({
    url: '/mesCheck/TraceReport',
    method: 'post',
    data: data
  })
}

// 修改产品检验单
export function updateTraceReport(data) {
  return request({
    url: '/mesCheck/TraceReport',
    method: 'put',
    data: data
  })
}

// 删除产品检验单
export function delTraceReport(id) {
  return request({
    url: '/mesCheck/TraceReport/' + id,
    method: 'delete'
  })
}

// 导出产品检验单
export function exportTraceReport(query) {
  return request({
    url: '/mesCheck/TraceReport/export',
    method: 'get',
    params: query
  })
}